﻿$(function () {
   
    var vm = app.indexViewModel;
    vm.loadStart("body", "loading");
    app.dataservice.getToasts(function (data) {
        if (data.length > 0) {         
           
            vm.bind($("#Occasion"), $("#Origin"), $("#search-btn"), $("#slidenote1"));
            vm.setToastsData(data);
            vm.loadStop("body", "loading");
        }

    });


});